
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Using graphs in windows </TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp228.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp230.htm" >Next</A>
<!-- End Header -->
<A NAME="X-REF375016129"></A><h1>Using graphs in windows </h1>
<A NAME="TI8016"></A><p>In addition to using graphs in DataWindow objects, you can also place
graphs directly in windows and visual user objects. You define properties
for a graph control in the Window painter and use scripts to populate
the graph with data and to modify properties for the graph at runtime.</p>
<A NAME="TI8017"></A><p>This section describes procedures unique to using graphs in
windows and visual user objects. For general graph properties, see <A HREF="pbugp228.htm#X-REF352146494">"Defining a graph's
properties "</A>.</p>
<A NAME="TI8018"></A><h4>Placing a graph in a window</h4>
<A NAME="TI8019"></A><p>This procedure for placing a graph in a window in the Window
painter can also be used for placing a graph on a user object in
the User Object painter.</p>
<A NAME="TI8020"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To place a graph in a window:</p>
<ol><li class=fi><p>Open the Window painter and select the
window that will contain the graph.</p></li>
<li class=ds><p>Select Insert&gt;Control&gt;Graph
from the menu bar.</p></li>
<li class=ds><p>Click where you want the graph.</p><p>PowerBuilder displays a model of the graph in the window.</p></li>
<li class=ds><p>Specify properties for the graph, such as type,
title, text properties, and axis properties.</p><p>See <A HREF="pbugp228.htm#X-REF352146494">"Defining a graph's
properties "</A>.</p></li>
<li class=ds><p>Write one or more scripts to populate the graph
with data.</p><p>See the chapter on manipulating graphs in <i>Application
Techniques</i>
.</p></li></ol>
<br><A NAME="TI8021"></A><h4>Using the graph's Properties view in
the Window painter</h4>
<A NAME="TI8022"></A><p>A graph's Properties view in the Window and User
Object painters is similar to the one in the DataWindow painter except that
the Properties view in the Window and User Object painter:<A NAME="TI8023"></A>
<ul>
<li class=fi>Does not have buttons for
specifying property conditional expressions next to properties</li>
<li class=ds>Does not have Data, Position, and Pointer property
pages</li>
<li class=ds>Does have an Other page, which you use to specify
drag-and-drop, position, and pointer properties for the graph control
</li>
</ul>
</p>
<A NAME="TI8024"></A><p>For more information, see <A HREF="pbugp226.htm#X-REF352150508">"Using the graph's
Properties view"</A>.</p>

